package com.ferry.lock.config;

/**
 * 默认配置
 * Created by daiyong
 */
public class DefaultConfig {

	private DefaultConfig() {}

	/**
	 * zk 使用公共集群 暂未提供自定义配置
	 */
	public static final String ZK_DEV_CONF = "/ferry-lock-zk/zk-dev.properties";
	public static final String ZK_TEST_CONF = "/ferry-lock-zk/zk-test.properties";
	public static final String ZK_STAGING_CONF = "/ferry-lock-zk/zk-staging.properties";
	public static final String ZK_PROD_CONF = "/ferry-lock-zk/zk-prod.properties";


	/**
	 * redis 使用公共集群 暂未提供自定义配置
	 */
	public static final String REDIS_DEV_CONF = "/ferry-lock-redis/redis-dev.properties";
	public static final String REDIS_TEST_CONF = "/ferry-lock-redis/redis-test.properties";
	public static final String REDIS_STAGING_CONF = "/ferry-lock-redis/redis-staging.properties";
	public static final String REDIS_PROD_CONF = "/ferry-lock-redis/redis-prod.properties";
	public static final int EXPIER_TIME = 60;  //解锁时间 单位s
	public static final int RETRY_TIMES = 3; //重试次数
	public static final int SPIN_TIME = 50; //自旋时间 单位ms


	/**
	 * 公用
	 */
	public static final int MAX_SIZE = 50;
}
